﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;




using System.Linq.Expressions;
using System.Data.SqlClient;
using XT.Exam.IDataAccess.Base_Inerface;
using XT.Exam.MODEL;
namespace XT.Exam.IBLL.BaseInterface
{

    public interface IBaseBusinessLogic<D, T>
        where D : IBaseDataAccess<T>
        where T : class
    {
        
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        bool Add(T t,params SqlParameter[] parameter);
        bool DeleteById(T t);
        bool Update(T t);
        /// <summary>
        /// 显示
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        List<T> GetList<T>(params SqlParameter[] param) where T : new();
        /// <summary>
        ///  考试界面随机排题
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="param"></param>
        /// <returns></returns>
        List<T> GetListOrder<T>(params SqlParameter[] param) where T : new();
    }
}
